package com.igame.Controller;


import com.igame.Service.FollowService;
import com.igame.common.Result;
import com.igame.vo.UserVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin //忽视跨域问题
@RestController
@RequestMapping("/follow")
@Slf4j
public class FollowController {

    @Autowired
    FollowService followService;

    @PostMapping("/myConcern")
    public Result<List<UserVo>> iSold(@RequestBody Integer id){
        return followService.myConcern(id);
    }
}
